/* 知识库管理模块样式 */

/* 主容器 */
.knowledge-base-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa;
    overflow: hidden;
}

/* ========== 顶部导航栏 ========== */
.kb-top-navbar {
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.kb-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.kb-logo i {
    font-size: 28px;
}

.kb-top-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.kb-user-info,
.kb-notification,
.kb-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.kb-user-info:hover,
.kb-notification:hover,
.kb-logout:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.kb-notification {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* ========== 搜索区 ========== */
.kb-search-area {
    background-color: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    gap: 20px;
    align-items: center;
}

.kb-global-search {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.kb-global-search i {
    position: absolute;
    left: 15px;
    color: #9aa5b1;
    font-size: 16px;
}

#kb-global-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

#kb-global-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.kb-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.kb-filter-select {
    padding: 10px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.kb-filter-select:hover {
    border-color: #667eea;
}

.kb-filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.kb-advanced-btn {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.kb-advanced-btn:hover {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

/* ========== 主体区域 ========== */
.kb-main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ========== 侧边栏 ========== */
.kb-sidebar {
    width: 220px;
    background-color: white;
    border-right: 1px solid #e1e8ed;
    padding: 20px 0;
    overflow-y: auto;
}

.kb-sidebar-item {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #4a5568;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.kb-sidebar-item:hover {
    background-color: #f7fafc;
    color: #667eea;
}

.kb-sidebar-item.active {
    background-color: #eef2ff;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.kb-sidebar-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* ========== 主内容区 ========== */
.kb-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa;
    overflow: hidden;
}

/* 面包屑导航 */
.kb-breadcrumb {
    padding: 20px 30px;
    background-color: white;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4a5568;
}

.kb-breadcrumb .separator {
    color: #9aa5b1;
}

.kb-breadcrumb i {
    margin-right: 5px;
}

#kb-breadcrumb-current {
    color: #667eea;
    font-weight: 600;
}

/* 操作工具栏 */
.kb-toolbar {
    padding: 20px 30px;
    background-color: white;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kb-toolbar-left,
.kb-toolbar-right {
    display: flex;
    gap: 12px;
}

.kb-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.kb-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.kb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.kb-btn-secondary {
    background-color: #f8f9fa;
    color: #4a5568;
    border: 1px solid #e1e8ed;
}

.kb-btn-secondary:hover {
    background-color: #e2e8f0;
}

.kb-btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    background-color: #f8f9fa;
    color: #4a5568;
}

.kb-btn-icon.active {
    background-color: #667eea;
    color: white;
}

.kb-btn-icon:hover {
    background-color: #e2e8f0;
}

.kb-btn-icon.active:hover {
    background-color: #5568d3;
}

/* 内容展示区 */
.kb-display-area {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
}

/* ========== 资源库列表 ========== */
.kb-resource-list {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.kb-table {
    width: 100%;
    border-collapse: collapse;
}

.kb-table thead {
    background-color: #f8f9fa;
}

.kb-table th {
    padding: 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e1e8ed;
}

.kb-table tbody tr {
    transition: background-color 0.2s;
}

.kb-table tbody tr:hover {
    background-color: #f7fafc;
}

.kb-table td {
    padding: 15px;
    font-size: 14px;
    color: #4a5568;
    border-bottom: 1px solid #e1e8ed;
}

.kb-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #eef2ff;
    color: #667eea;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 3px;
}

.kb-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.kb-status.active {
    background-color: #d4edda;
    color: #155724;
}

.kb-status.draft {
    background-color: #fff3cd;
    color: #856404;
}

.kb-operations {
    display: flex;
    gap: 8px;
}

.kb-op-btn {
    padding: 6px 10px;
    background-color: transparent;
    border: none;
    color: #667eea;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.kb-op-btn:hover {
    background-color: #eef2ff;
    transform: scale(1.1);
}

/* 分页 */
.kb-pagination {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid #e1e8ed;
}

.kb-page-btn {
    padding: 8px 15px;
    background-color: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.2s;
}

.kb-page-btn:hover {
    background-color: #f7fafc;
    border-color: #667eea;
    color: #667eea;
}

.kb-page-btn.active {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

/* ========== 问答对列表 ========== */
.kb-qa-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kb-qa-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kb-qa-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kb-qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.kb-qa-header h3 {
    font-size: 18px;
    color: #2d3748;
    margin: 0;
}

.kb-qa-category {
    padding: 5px 12px;
    background-color: #eef2ff;
    color: #667eea;
    border-radius: 20px;
    font-size: 12px;
}

.kb-qa-answer {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.kb-qa-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #9aa5b1;
}

.kb-qa-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== 案例库网格 ========== */
.kb-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.kb-case-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.kb-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.kb-case-thumbnail {
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.kb-case-info {
    padding: 20px;
}

.kb-case-info h4 {
    font-size: 16px;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.kb-case-info p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.kb-case-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========== 专题管理列表 ========== */
.kb-topic-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kb-topic-item {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.kb-topic-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kb-topic-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
}

.kb-topic-content {
    flex: 1;
}

.kb-topic-content h3 {
    font-size: 18px;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.kb-topic-content p {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 12px;
}

.kb-topic-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #9aa5b1;
}

.kb-topic-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== 标签管理 ========== */
.kb-tag-cloud {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kb-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    margin: 8px;
    background-color: #eef2ff;
    border-radius: 8px;
    transition: all 0.2s;
}

.kb-tag-item:hover {
    background-color: #667eea;
    color: white;
    transform: scale(1.05);
}

.kb-tag-name {
    font-size: 14px;
    font-weight: 500;
}

.kb-tag-count {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.kb-tag-edit {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 4px;
    transition: transform 0.2s;
}

.kb-tag-edit:hover {
    transform: scale(1.2);
}

/* ========== 版本历史时间线 ========== */
.kb-version-timeline {
    position: relative;
    padding-left: 40px;
}

.kb-version-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e1e8ed;
}

.kb-version-item {
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kb-version-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kb-version-marker {
    position: absolute;
    left: -31px;
    top: 25px;
    width: 12px;
    height: 12px;
    background-color: #667eea;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #667eea;
}

.kb-version-content h4 {
    font-size: 16px;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.kb-version-content p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.kb-version-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #9aa5b1;
}

.kb-version-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .kb-case-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .kb-sidebar {
        width: 180px;
    }

    .kb-search-area {
        flex-direction: column;
        align-items: stretch;
    }

    .kb-global-search {
        max-width: 100%;
    }

    .kb-filters {
        flex-wrap: wrap;
    }

    .kb-case-grid {
        grid-template-columns: 1fr;
    }

    .kb-toolbar {
        flex-direction: column;
        gap: 15px;
    }

    .kb-toolbar-left,
    .kb-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .kb-top-navbar {
        padding: 0 15px;
    }

    .kb-logo span {
        display: none;
    }

    .kb-user-info span,
    .kb-logout span {
        display: none;
    }

    .kb-sidebar {
        width: 60px;
    }

    .kb-sidebar-item span {
        display: none;
    }

    .kb-table {
        font-size: 12px;
    }

    .kb-table th,
    .kb-table td {
        padding: 10px 8px;
    }
}

/* ========== 滚动条样式 ========== */
.kb-sidebar::-webkit-scrollbar,
.kb-display-area::-webkit-scrollbar {
    width: 6px;
}

.kb-sidebar::-webkit-scrollbar-track,
.kb-display-area::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.kb-sidebar::-webkit-scrollbar-thumb,
.kb-display-area::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.kb-sidebar::-webkit-scrollbar-thumb:hover,
.kb-display-area::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ========== 上传模态框样式 ========== */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.upload-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.upload-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-modal-header h2 i {
    color: #667eea;
}

.upload-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9aa5b1;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.upload-modal-close:hover {
    background-color: #f7fafc;
    color: #4a5568;
}

.upload-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.upload-modal-body::-webkit-scrollbar {
    width: 6px;
}

.upload-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.upload-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.upload-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-right-buttons {
    display: flex;
    gap: 12px;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background-color: #f7fafc;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #667eea;
    background-color: #eef2ff;
}

.upload-area.drag-over {
    border-color: #667eea;
    background-color: #eef2ff;
    transform: scale(1.02);
}

.upload-placeholder i {
    font-size: 64px;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-placeholder h3 {
    font-size: 18px;
    color: #2d3748;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.upload-hint {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 14px;
}

.format-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.format-group {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    color: #4a5568;
    text-align: left;
    border: 1px solid #e1e8ed;
}

.format-group strong {
    color: #2d3748;
}

/* 文件列表 */
.upload-file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.upload-file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    transition: all 0.2s;
}

.upload-file-item:hover {
    background-color: #eef2ff;
    border-color: #667eea;
}

.file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 12px;
    color: #9aa5b1;
}

.file-progress {
    flex: 1;
    min-width: 150px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e1e8ed;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.progress-text {
    font-size: 12px;
    color: #4a5568;
    text-align: right;
}

.file-remove {
    background: none;
    border: none;
    color: #9aa5b1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.file-remove:hover {
    background-color: #fee;
    color: #dc3545;
}

/* 上传表单 */
.upload-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

/* 表单分节标题 */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.form-section-title i {
    color: #667eea;
}

/* 核心信息卡片 */
.core-info-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.core-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.core-info-header i {
    color: #667eea;
    font-size: 20px;
}

.core-info-header span:first-of-type {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    flex: 1;
}

.required-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 高亮表单组 */
.form-group.highlighted {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.form-group.highlighted:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.form-group.highlighted:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 大号标签 */
.label-lg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.label-lg i {
    color: #667eea;
    font-size: 16px;
}

/* 大号表单控件 */
.form-control-lg {
    padding: 12px 18px;
    font-size: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control-lg:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

/* 三列布局 */
.form-row-triple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .form-row-triple {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .core-info-card {
        padding: 20px 15px;
    }

    .form-group.highlighted {
        padding: 12px;
    }
}

/* 表单提示文本 */
.form-hint {
    font-size: 12px;
    color: #9aa5b1;
    margin-top: 5px;
}

.form-hint.char-count {
    text-align: right;
    color: #4a5568;
}

/* 复选框组 */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
    background-color: #f7fafc;
    border-radius: 6px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover {
    border-color: #667eea;
    background-color: #eef2ff;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked + span,
.checkbox-item:has(input[type="checkbox"]:checked) {
    color: #667eea;
    font-weight: 500;
}

/* 表单信息框 */
.form-info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: #eef2ff;
    border-left: 3px solid #667eea;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 13px;
    color: #4a5568;
}

.form-info-box i {
    color: #667eea;
    font-size: 18px;
}

.form-info-box strong {
    color: #2d3748;
}

/* ========== 资源类型徽章 ========== */
.resource-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.resource-type-badge.type-doc {
    background-color: #e3f2fd;
    color: #1976d2;
}

.resource-type-badge.type-video {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.resource-type-badge.type-audio {
    background-color: #fff3e0;
    color: #e65100;
}

/* ========== 资源状态徽章 ========== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.status-published {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.status-draft {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.status-offline {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.status-pending {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* 操作链接样式优化 */
.operation a {
    display: inline-block;
    margin: 0 5px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.2s;
}

.operation a:hover {
    color: #5568d3;
    transform: scale(1.2);
}

.operation a.text-danger {
    color: #dc3545;
}

.operation a.text-danger:hover {
    color: #c82333;
}

/* 按钮样式 */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-cancel {
    background-color: #f8f9fa;
    color: #4a5568;
    border: 1px solid #e1e8ed;
}

.btn-cancel:hover {
    background-color: #e2e8f0;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit-review {
    background-color: #17a2b8;
    color: white;
    border: none;
}

.btn-submit-review:hover {
    background-color: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-delete:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .upload-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .upload-modal-body {
        padding: 20px;
    }

    .upload-area {
        padding: 30px 20px;
    }

    .upload-placeholder i {
        font-size: 48px;
    }

    .upload-placeholder h3 {
        font-size: 16px;
    }

    .format-info {
        gap: 8px;
    }

    .format-group {
        padding: 12px;
        font-size: 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .upload-file-item {
        flex-wrap: wrap;
    }

    .file-progress {
        width: 100%;
        min-width: auto;
    }
}

/* ========== 批量上传样式 ========== */

/* 批量上传模态框 */
.batch-upload-content {
    max-width: 900px;
}

/* 批量文件信息区 */
.batch-file-info {
    background-color: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.batch-file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.batch-file-header h3 {
    margin: 0;
    font-size: 16px;
    color: #2d3748;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.batch-file-details {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
}

.file-detail-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.file-icon-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    flex-shrink: 0;
}

.file-detail-info {
    flex: 1;
}

.file-detail-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.file-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #9aa5b1;
    margin-bottom: 10px;
}

.file-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-status {
    margin-top: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.processing {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

/* 解压文件列表区 */
.extracted-files-section,
.duplicate-files-section {
    margin-top: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.stat-total {
    background-color: #eef2ff;
    color: #667eea;
}

.stat-valid {
    background-color: #d4edda;
    color: #155724;
}

.stat-invalid {
    background-color: #f8d7da;
    color: #721c24;
}

.stat-duplicate {
    background-color: #fff3cd;
    color: #856404;
}

/* 验证结果提示 */
.validation-results {
    margin-bottom: 15px;
}

.validation-alert {
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* 解压文件列表 */
.extracted-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.extracted-file-list::-webkit-scrollbar {
    width: 6px;
}

.extracted-file-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.extracted-file-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.extracted-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    transition: all 0.3s;
}

.extracted-file-item.valid {
    border-left: 3px solid #28a745;
}

.extracted-file-item.invalid {
    border-left: 3px solid #dc3545;
    opacity: 0.7;
}

.extracted-file-item.uploading {
    background-color: #fff3cd;
    border-left-color: #ffc107;
}

.extracted-file-item.uploaded {
    background-color: #d4edda;
    border-left-color: #28a745;
}

.extracted-file-item .file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.extracted-file-item .file-info {
    flex: 1;
    min-width: 0;
}

.extracted-file-item .file-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.extracted-file-item .file-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #9aa5b1;
}

.duplicate-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #856404;
    background-color: #fff3cd;
    padding: 2px 8px;
    border-radius: 4px;
}

.file-validation-status {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-validation-status.valid {
    color: #28a745;
}

.file-validation-status.invalid {
    color: #dc3545;
}

/* 重复文件处理 */
.duplicate-files-section {
    background-color: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

.duplicate-file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.duplicate-file-item {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.duplicate-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.duplicate-file-info .file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-details .file-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-details .file-size {
    font-size: 12px;
    color: #9aa5b1;
}

.duplicate-actions {
    display: flex;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: white;
}

.radio-option:hover {
    background-color: #f7fafc;
    border-color: #667eea;
}

.radio-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.radio-option span {
    font-size: 13px;
    color: #4a5568;
}

/* 批量上传响应式设计 */
@media (max-width: 768px) {
    .batch-upload-content {
        width: 95%;
    }

    .file-stats {
        flex-direction: column;
        gap: 8px;
    }

    .duplicate-file-item {
        flex-direction: column;
        align-items: stretch;
    }

    .duplicate-actions {
        flex-direction: column;
    }

    .radio-option {
        justify-content: center;
    }
}

/* ========== 资源详情弹窗样式 ========== */
.detail-section {
    margin-bottom: 25px;
}

.detail-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

.detail-section-title i {
    color: #667eea;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item label {
    font-size: 13px;
    font-weight: 500;
    color: #9aa5b1;
}

.detail-item div {
    font-size: 14px;
    color: #2d3748;
}

.tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #eef2ff;
    color: #667eea;
    border-radius: 15px;
    font-size: 13px;
}

.detail-description {
    color: #4a5568;
    line-height: 1.8;
    font-size: 14px;
}

.file-preview-box {
    background-color: #f7fafc;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-preview-box .file-icon-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    flex-shrink: 0;
}

.file-info-text {
    flex: 1;
}

.file-info-text .file-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.file-info-text .file-meta {
    font-size: 13px;
    color: #9aa5b1;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* ========== 资源编辑弹窗样式 ========== */
.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    min-height: 42px;
    align-items: center;
}

.tag-input-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background-color: #eef2ff;
    color: #667eea;
    border-radius: 15px;
    font-size: 13px;
}

.tag-remove {
    cursor: pointer;
    color: #667eea;
    font-weight: bold;
    transition: color 0.2s;
}

.tag-remove:hover {
    color: #dc3545;
}

.tag-input-field {
    border: none;
    outline: none;
    flex: 1;
    min-width: 100px;
    padding: 4px;
    font-size: 14px;
}

/* ========== 版本记录样式 ========== */
.version-history-container {
    margin-top: 15px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

.version-history-table {
    width: 100%;
    border-collapse: collapse;
}

.version-history-table thead {
    background-color: #f7fafc;
}

.version-history-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e1e8ed;
}

.version-history-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.version-history-table tbody tr:hover {
    background-color: #f7fafc;
}

.version-history-table tbody tr:last-child {
    border-bottom: none;
}

.version-history-table td {
    padding: 12px 15px;
    font-size: 13px;
    color: #4a5568;
}

.version-history-table td:first-child {
    font-weight: 600;
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .file-preview-box {
        flex-direction: column;
        text-align: center;
    }

    .version-history-table {
        font-size: 12px;
    }

    .version-history-table th,
    .version-history-table td {
        padding: 8px 10px;
    }
}

/* ========== 高级搜索面板样式 ========== */
.advanced-search-panel {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.search-panel-header {
    background: #667eea;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.search-panel-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-panel {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.btn-close-panel:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.search-panel-body {
    padding: 15px;
}

.search-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.search-form-group {
    display: flex;
    flex-direction: column;
}

.search-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.search-form-group .form-control {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form-group .form-control:focus {
    outline: none;
    border-color: #667eea;
}

.date-range-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range-group .form-control {
    flex: 1;
}

.date-separator {
    color: #666;
    font-size: 14px;
}

.search-panel-footer {
    padding: 12px 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-toggle-search {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-toggle-search:hover {
    background-color: #f5f5f5;
    border-color: #667eea;
}

.btn-toggle-search.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .search-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .search-panel-body {
        padding: 15px;
    }

    .search-panel-footer {
        padding: 12px 15px;
        flex-direction: column;
    }

    .search-panel-footer button {
        width: 100%;
    }
}

/* ========== 专题管理相关样式 ========== */

/* 专题查询区域 */
.topic-search-area {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.topic-search-area .search-form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.topic-search-area .search-form-row:last-child {
    grid-template-columns: 1fr 1fr auto auto;
    align-items: end;
}

.topic-search-area .search-form-group {
    display: flex;
    flex-direction: column;
}

.topic-search-area .search-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.topic-search-area .form-control {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.topic-search-area .form-control:focus {
    outline: none;
    border-color: #667eea;
}

.topic-search-area .search-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.topic-search-area .date-range-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-search-area .date-range-group .form-control {
    flex: 1;
}

.topic-search-area .date-separator {
    color: #666;
    font-size: 14px;
}

/* 标签查询区域 */
.tag-search-area {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.tag-search-area .search-form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.tag-search-area .search-form-row:last-child {
    grid-template-columns: 1fr 1fr auto auto;
    align-items: end;
}

.tag-search-area .search-form-group {
    display: flex;
    flex-direction: column;
}

.tag-search-area .search-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.tag-search-area .form-control {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tag-search-area .form-control:focus {
    outline: none;
    border-color: #667eea;
}

.tag-search-area .search-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tag-search-area .date-range-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-search-area .date-range-group .form-control {
    flex: 1;
}

.tag-search-area .date-separator {
    color: #666;
    font-size: 14px;
}

/* 导入说明 */
.import-instructions {
    background-color: #f7fafc;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.import-instructions h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.import-instructions ul {
    margin: 15px 0;
    padding-left: 25px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.8;
}

.import-instructions li {
    margin-bottom: 8px;
}

/* 导入预览 */
.import-preview {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    background-color: #f7fafc;
}

.import-preview h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2d3748;
    font-weight: 600;
}

.preview-table-container {
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table thead {
    position: sticky;
    top: 0;
    background-color: #f7fafc;
    z-index: 10;
}

.preview-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e1e8ed;
}

.preview-table td {
    padding: 12px 15px;
    font-size: 14px;
    color: #2d3748;
    border-bottom: 1px solid #f0f0f0;
}

.preview-table tbody tr:hover {
    background-color: #f7fafc;
}

.import-summary {
    margin-top: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

/* 资源选择器 */
.resource-selector {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
    background-color: #f7fafc;
}

.resource-list {
    min-height: 100px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: white;
    border: 1px dashed #cbd5e0;
    border-radius: 6px;
}

.empty-hint {
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
    padding: 20px;
}

/* 资源列表详情 */
.resource-list-detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background-color: #f7fafc;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    transition: all 0.2s;
}

.resource-item:hover {
    background-color: #edf2f7;
    border-color: #667eea;
}

.resource-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.resource-id {
    font-size: 13px;
    color: #667eea;
    font-weight: 600;
    padding: 4px 10px;
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    flex-shrink: 0;
}

.resource-title {
    font-size: 14px;
    color: #2d3748;
    flex: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .import-instructions {
        padding: 15px;
    }

    .import-preview {
        padding: 15px;
    }

    .preview-table-container {
        max-height: 250px;
    }

    .preview-table th,
    .preview-table td {
        padding: 10px;
        font-size: 13px;
    }

    .resource-item {
        flex-wrap: wrap;
    }
}

/* ========== 多选下拉框样式 ========== */
select[multiple].form-control,
select[multiple].form-control-lg {
    min-height: 120px;
    padding: 8px;
}

select[multiple].form-control option,
select[multiple].form-control-lg option {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

select[multiple].form-control option:hover,
select[multiple].form-control-lg option:hover {
    background-color: #f0f4ff;
}

select[multiple].form-control option:checked,
select[multiple].form-control-lg option:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 500;
}

/* Firefox浏览器的多选下拉框样式优化 */
@-moz-document url-prefix() {
    select[multiple].form-control option:checked,
    select[multiple].form-control-lg option:checked {
        background-color: #667eea;
    }
}
